package day06;

public class Cat extends Animal{
    private double cuteness;

    public Cat(){
        System.out.println("Cat..");
    }

    public Cat(String name,String type,double cuteness){
        super(name,type);
        this.cuteness = cuteness;
    }

    public double getCuteness(){
        return cuteness;
    }

    public void setCuteness(double cuteness){
        this.cuteness = cuteness;
    }

    @Override
    public void spark(){
        System.out.println("喵喵叫");
    }

    public void catchMouse(){
        System.out.println("猫可以抓老鼠...");
    }

    @Override
    public String toString(){
        return super.toString()+"cuteness:"+cuteness;
    }
}
